import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-04
 * Time: 18:41
 */
public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> queue=new ArrayBlockingQueue<>(100);
         queue.put("aaa");
         String str=queue.take();
        System.out.println("取出的数据是 :"+str);
        String str2=queue.take();
        System.out.println("取出的数据是 :"+str2);

    }
}
